package com.yunsom.testdemo.collection;

import java.util.Arrays;
import java.util.Stack;

/**
 * @author Xbao
 * @description
 * @date 2022/8/25 15:30
 */
public class StackTest {

  public static void main(String[] args) {
    Stack stack = new Stack();
    stack.push(1);
    stack.push(2);
    stack.push(3);
    System.out.println(stack.peek());
    System.out.println(stack.pop());
    System.out.println(stack.empty());
    System.out.println(stack.isEmpty());
    System.out.println(Arrays.toString(stack.toArray()));

  }

}
